package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysRole;
import com.ruoyi.system.api.factory.RemoteRoleFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author: cjie
 * @description: 角色服务
 * @date: 2021/6/8
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory =
        RemoteRoleFallbackFactory.class)
public interface RemoteRoleService {
    @GetMapping(value = "/role/listInfo")
    R<List<SysRole>> listInfo(SysRole role);
}
